package com.jfs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description 角色表
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/8/5
 */
@Data
@TableName("t_role")
@KeySequence(value = "customIdGenerator")
@ApiModel(description = "角色表")
public class Role {
    @ApiModelProperty(value = "角色主键")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    @ApiModelProperty("角色名称")
    private String name;
    @ApiModelProperty("角色描述")
    private String roleDescribe;
    @ApiModelProperty("角色唯一标识Key")
    private String roleKey;
    @ApiModelProperty("默认为0 无权限 1位可读权限 2 位可操作权限 3 可读可操作性权限")
    private Integer authority;
}
